---
title: ChatGPT
description: Connect ChatGPT to Anyquery
---

import { Aside } from '@astrojs/starlight/components';

<Aside
title='Deprecation Notice'
type='danger'>
  The ChatGPT integration is **no longer available** starting from **2025-06-19**. <br />
  
  Enabling this integration cost me 20$ per month, and I can no longer afford it. If anyone is interested in sponsoring the integration, please reach out to me at [contact@julienc.me](mailto:contact@julienc.me)
</Aside>

<br />

import { LinkCard } from '@astrojs/starlight/components';
import { Steps } from '@astrojs/starlight/components';

<img src="https://upload.wikimedia.org/wikipedia/commons/0/04/ChatGPT_logo.svg" alt="ChatGPT" width="96" />

ChatGPT is a powerful conversational AI model that can generate human-like text. Using Anyquery, it enables you to connect ChatGPT to your local and online applications (such as Spotify, GitHub, Discord, etc.) and interact with them using natural language.

## Prerequisites

Before you begin, ensure that you have the following:

- A working installation of Anyquery (`v0.4.0`). Follow the [installation guide](/docs/#installation) if you haven't installed it yet.
- A few integrations set up in Anyquery. Refer to each [integration guide](/integrations) for more information.

## Connect ChatGPT to Anyquery

<Steps>

1. ### Start anyquery locally

    In a terminal, run the following command to connect ChatGPT to Anyquery:

    ```bash title="Terminal"
    anyquery gpt
    ```

    This command will start a tunnel to ChatGPT and provide you a bearer token. You must then use this token to authenticate your requests to ChatGPT.

    ```txt title="Terminal" "Your Anyquery ID is ikabcjde"
    julien@MacBook-Air-Julien anyquery % anyquery gpt
    Connecting to the websocket server...
    Connected to the websocket server
                                                                
                                                                
    Anyquery is now running. When asked, pass ikabcjde as     
    the anyquery ID to your LLM client (e.g. ChatGPT,         
    TypingMind, etc.)                                         
                                                                
    ID: ikabcjde                                              
    The tunnel will expire at 2025-05-07 UTC                  
                                                                
                                                                
    Waiting for requests <---<<
    ```

2. ### Set up ChatGPT

    The integration is no longer available, refer to the notice at the top of the page for more information.


    {/*Go to the [Anyquery custom GPT](https://redirect.anyquery.xyz/chatgpt) page and start chatting. When prompted about the Anyquery ID, enter the ID provided in the terminal.

     <LinkCard href="https://redirect.anyquery.xyz/chatgpt" title="Anyquery custom GPT" description="Connect ChatGPT to Anyquery" /> */}


</Steps>

## Interact with ChatGPT

Once you've connected ChatGPT to Anyquery, you can start interacting with it using natural language. Here are a few examples:

- **What can you do?**
- **Recommend me a song according to my history.**
- **Take this PDF, and open the references in my browser.**
- **Here is a link to my schedule, when should I schedule a meeting?**

![ChatGPT](/images/docs/llm/chatgpt-ready.png)

## Next Steps

- Learn more about [ChatGPT](https://www.openai.com/chatgpt).
- Explore other [integrations](/integrations) available in Anyquery.
- Join the [Anyquery community](https://github.com/julien040/anyquery/discussions) to ask questions and share your feedback.
